package com.lovepick.bean;

import java.io.Serializable;

/**
 * @author Liutong
 * 
 *         会话列表各项内容
 * 
 */
public class MsgListItem implements Serializable
{
	private static final long serialVersionUID = -9152407833134673923L;
	private int userID;
	private String nickName;
	private String lastMsg;
	private String lastDate;
	private int lastID;
	private int count;
	private int hasNew;

	/**
	 * @return the userID
	 */
	public int getUserID()
	{
		return userID;
	}

	/**
	 * @param userID the userID to set
	 */
	public void setUserID(int userID)
	{
		this.userID = userID;
	}
	
	/**
	 * @return the nickName
	 */
	public String getNickName()
	{
		return nickName;
	}

	/**
	 * @param nickName the nickName to set
	 */
	public void setNickName(String nickName)
	{
		this.nickName = nickName;
	}

	/**
	 * @return the lastMsg
	 */
	public String getLastMsg()
	{
		return lastMsg;
	}

	/**
	 * @param lastMsg the lastMsg to set
	 */
	public void setLastMsg(String lastMsg)
	{
		this.lastMsg = lastMsg;
	}

	/**
	 * @return the lastDate
	 */
	public String getLastDate()
	{
		return lastDate;
	}

	/**
	 * @param lastDate the lastDate to set
	 */
	public void setLastDate(String date)
	{
		this.lastDate = date;
	}

	/**
	 * @return the lastID
	 */
	public int getLastID()
	{
		return lastID;
	}

	/**
	 * @param lastID the lastID to set
	 */
	public void setLastID(int lastID)
	{
		this.lastID = lastID;
	}

	/**
	 * @return the count
	 */
	public int getCount()
	{
		return count;
	}

	/**
	 * @param count the count to set
	 */
	public void setCount(int count)
	{
		this.count = count;
	}

	/**
	 * @return the hasNew
	 */
	public int getHasNew()
	{
		return hasNew;
	}

	/**
	 * @param hasNew the hasNew to set
	 */
	public void setHasNew(int hasNew)
	{
		this.hasNew = hasNew;
	}

	@Override
	public String toString()
	{
		String str = "";
		str += "{";
		str += "userID:" + userID + ",";
		str += "nickName:" + nickName + ",";
		str += "lastMsg:" + lastMsg + ",";
		str += "lastDate:" + lastDate + ",";
		str += "lastID:" + lastID + ",";
		str += "count:" + count + ",";
		str += "hasNew:" + hasNew;
		str += "}";

		return str;
	}

}
